package org.uned.agonzalo16.bitacora.domain;

import com.googlecode.objectify.Ref;
import com.googlecode.objectify.annotation.Cache;
import com.googlecode.objectify.annotation.Entity;
import com.googlecode.objectify.annotation.Index;
import com.googlecode.objectify.annotation.Load;

@Entity
@Cache
public class BlogContribution extends BaseEntity {

	@Load
	@Index
	private Ref<Blog> blog;

	@Load
	@Index
	private Ref<User> user;

	public Blog getBlog() {
		return blog.get();
	}

	public void setBlog(Blog value) {
		blog = Ref.create(value);
	}

	public User getUser() {
		return user.get();
	}

	public void setUser(User value) {
		user = Ref.create(value);
	}
}
